
public class Personne {
	private String nom;
	private String prenom;
	private boolean sexe;
	private String anneeDeNaissance;
	
	public String toString(){
		
		return nom + " " + prenom + "," + (sexe ? "homme" : "femme") + "," + anneeDeNaissance;
	}
	
	public Personne(String nom, String prenom, boolean sexe, String anneeDeNaissance){
		this.nom = nom;
		this.prenom = prenom;
		this.sexe = sexe;
		this.anneeDeNaissance = anneeDeNaissance;
	}
	
	public static void main(String[] args){
		Personne p = new Personne("WANG", "Yupeng", true, "1990");
		System.out.println(p);
		Employe e = new Employe("WANG", "Yupeng", true, "1990",new Entreprise("ECPKN"),"zy1124119");
		System.out.println(e);
	}
}
